/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package workforce.limousine.service;

import java.util.List;
import javax.sql.DataSource;

/**
 *
 * @author Neo
 */
public interface Service {
    public int getLimit();
    public void setLimit(int limit);
    public boolean save(Object obj);
    public boolean update(Object obj);
    public boolean remove(Object obj);
    public Object findById(String id);
    public Object findById(String uid, String id);
    public boolean removeAll(String ids[]);
    public List search(int offset, Object[] certirial);
    public int searchCount(int offset, Object[] certirial);
    public void setDataSource(DataSource ds);
}
